﻿<!doctype html>
<html>
<head>
    <title>微街秀 > 我的财富</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="css/css.css">
    <link rel="stylesheet" type="text/css" href="css/Makeresult.css">
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <style type="text/css">
        body{background: #CE3A38;}
        .bakgorug{width: 100%;height: auto;position: relative;}
        #bakgorugimg{width: 100%;}
        .share{width: 60%;height: auto;position: absolute;top: 5%;left: 20%;}
        #shareimg{width: 100%;}
    </style>
</head>
<body>
    <div>
        <div class="wamtop">
            <div class="topleft" onclick="window.location.href='MakeFt.html'">
                <img src="img/5.jpg" /></div>
            <div class="topcententxt">
                我的财富</div>
        </div>
        <div>
            <div class="bakgorug">
                <img id="bakgorugimg" src="img/Makeimg/19.png" />
                <div class="share">
                    <div  onclick="window.location.href='makeShare.html'" style="position: relative; width: 100%; height: 100%;">
                        <img id="shareimg" src="img/Makeimg/18.png" />
                        <div style="width: 120px; text-align: center; position: absolute; top: 50%; left: 50%;margin-left: -60px; color: yellow;">
                            我的分享红包记录
                        </div>
                        <div style="width: 130px; text-align: center; position: absolute; top: 70%; left: 50%;
                            margin-left: -65px; color: yellow; font-weight: 700; font-size: 16px;">
                            <span class="balance">余额： ￥ 0</span>
                        </div>
                    </div>
                </div>
                <div class="bottoms">

                    <div id="wx_TX" style="width: 95%; height: 50px; background: white; margin: 20px auto 5px auto;font-size: 18px; line-height: 50px;">
                        <span style="margin-left: 20px;">微信提现</span>
                        <img src="img/45.png" style="float: right; margin: 13px 20px 0 0;">
                    </div>
                    <div id = "alipayTx" style="width: 95%; height: 50px; background: white; margin: 0 auto 5px auto; font-size: 18px;
                        line-height: 50px;">
                        <span style="margin-left: 20px;">支付宝提现</span><img src="img/45.png" style="float: right;
                            margin: 13px 20px 0 0;">
                    </div>
                    <div onclick="window.location.href='Makezfbset.html'" style="width: 95%; height: 50px; background: white; margin: 0 auto 0 auto; font-size: 18px;
                        line-height: 50px;">
                        <span style="margin-left: 20px;">设置支付宝</span><img src="img/45.png" style="float: right;
                            margin: 13px 20px 0 0;">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        var page = 1,balance;
        $(document).ready(function () {
            load(page);
            $("#wx_TX").on("click", function () {
                document.location.href = 'makezfbdrop.html?platform=1&balance=' + balance;
            });
            $("#alipayTx").on("click", function () {
                document.location.href = 'makezfbdrop.html?platform=2&balance=' + balance;
            });
        });
        function load(page) {
            if (!islogin()) { window.location.href = 'login.html'; return; }
            AjaxStart("ajax/fc_setting.ashx?getsharedbalance", "", function (data) {
                loadhtml(data.item);
            });
        }
        function loadhtml(item) {
            balance = item["shared_balance"];
            $(".balance").html("余额： ￥ " + item["shared_balance"]);
        }       
    </script>
</body>
</html>
